<?php 
class welcome extends CI_Model{
	function welcome()
	{
		 'parent'||model();
	}
public function savetrack()
	{


	    $tm=time();
        $ref=@$HTTP_REFERER;
        $agent=@$HTTP_USER_AGENT;
        $ip=@$REMOTE_ADDR;
 

			 $query = "INSERT INTO track(tm, ref, agent, ip, tracking_page_name) VALUES ('$tm','$ref','$agent','$ip','$tracking_page_name')";
	         $result=$this->db->query($query); 
            
		   
		  return $result;
		  
	}
 }
 ?>